package com.gitee.maskit.jackson.converter;

import com.fasterxml.jackson.databind.util.StdConverter;

import java.util.Date;

public class JacksonLongToDate extends StdConverter<Long, Date> {
    public Date convert(Long value) {
        return null != value && value > 0 ? new Date(value) : null;
    }
}
